<template>
  <div>
    <div>
        <center><h1>流程创建</h1></center>
    </div>
    <div>
        创建流程名称：<el-input v-model="process" placeholder="请输入要创建的流程名称"></el-input>
        <center><el-button @click="create">确认创建</el-button></center>
    </div>
  </div>
</template>

<script>
export default {
data(){
    return{
        process:''
    }
},
methods:{
    create(){
        this.$axios.post('process/api/v1/process/',{
            'process':this.process
        })
        .then(res=>{
            console.log(res)
            if (res.data.code == 200){
                alert(res.data.msg)
                this.process = ''
            }
        })
    }
}
}
</script>

<style>

</style>